package com.svse.designPattern.behaviour.command.concretecommand;

import com.svse.designPattern.behaviour.command.command.Command;
import com.svse.designPattern.behaviour.command.receiver.Receiver;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/8/6 20:35
 */
public class ConcreteCommand  implements Command {
    private Receiver receiver;

    public ConcreteCommand( ) {
        this.receiver = new Receiver();
    }


    @Override
    public void execute() {
        receiver.action();
    }
}
